﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Domain.Entity
{
    public class MetaScore
    {
        [Key]
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }

        public int Graphics { get; set; }
        public int GamePlay { get; set; }
        public int Content { get; set; }
        public int Price { get; set; }


        [HiddenInput(DisplayValue = false)]
        [InverseProperty("MetaScores")]
        public Game Game { get; set; }


        [HiddenInput(DisplayValue = false)]
        public int GameId { get; set; }


        [HiddenInput(DisplayValue = false)]
        public int Score{
            get
            {
                return ((Graphics * 2) + (GamePlay * 5) + (Content * 2) + (Price));
            }
        }

    }
}
